package com.sinping.qh.repository.mongo.records;

import com.sinping.qh.domain.records.HighLightRecord;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 亮点记录
 *
 * @author Tiansx
 * @create 2018-05-28 15:27
 **/
public interface HighLightRepository extends MongoRepository<HighLightRecord,String> {
    /**
     * 根据检查记录查找亮点记录
     * @param id
     * @return
     */
    List<HighLightRecord>findAllByCheckId(String id);

    HighLightRecord findHighLightRecordByCheckId(String checkId);
    List<HighLightRecord>findAllByCheckIdIn(List<String> checkIdList);

    HighLightRecord deleteByCheckId(String checkId);
}
